package com.ysd.lis.controller.lab;

import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.lab.LabTatNode;
import com.ysd.lis.service.lab.LabTatNodeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * TAT监控节点 前端控制器
 * </p>
 *
 * @author cfz
 * @since 2024-10-24
 */
@RestController
@RequestMapping("/api/lab-tat-node")
public class LabTatNodeController extends BaseController {
    @Autowired
    LabTatNodeService labTatNodeService;

    @ApiOperation("查询")
    @GetMapping("/findLabTatNodeList")
    public Result findLabTatNodeList(LabTatNode labTatNode) {
        return labTatNodeService.findLabTatNodeList(labTatNode);
    }

    @ApiOperation("增加")
    @PostMapping("/addLabTatNode")
    public Result addLabTatNode(@RequestBody LabTatNode labTatNodes) {
        return labTatNodeService.addLabTatNode(labTatNodes);
    }

    @ApiOperation("删除")
    @PostMapping("/deleteLabTatNode")
    public Result deleteLabTatNode(@RequestBody LabTatNode labTatNodes) {
        return labTatNodeService.deleteLabTatNode(labTatNodes);
    }

    @ApiOperation("修改")
    @PostMapping("/updateLabTatNode")
    public Result updateLabTatNode(@RequestBody LabTatNode labTatNode) {
        return labTatNodeService.updateLabTatNode(labTatNode);
    }
}
